package ck.com.api;

import ck.com.dto.Dto;
import ck.com.pojo.TaskOnShelives;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

public interface TaskOnShelivesApi {

    @RequestMapping(value = "/insertTaskOnShelives")
    Dto<Integer> insertTaskOnShelives(@RequestBody List<TaskOnShelives> taskOnShelivesList);

    @RequestMapping(value = "/listTaskOnShelives")
    Dto<PageInfo<TaskOnShelives>> listTaskOnShelives(@RequestBody Map<String, Object> param);

    @RequestMapping(value = "/updateTaskOnShelives")
    Dto<Integer> updateTaskOnShelives(@RequestBody List<TaskOnShelives> taskOnShelivesList);

    @RequestMapping(value = "/whERIsCompleted")
    Dto<Integer> whERIsCompleted(@RequestBody TaskOnShelives taskOnShelives);
}
